<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html:html>
<head>
<html:base />
<title><bean:message key="Application.Name"/></title>
<link href="css/formas.css" rel="stylesheet" type="text/css">
<link href="css/calendar.css" rel="stylesheet" type="text/css">
<logic:present name="req_msg">
	<script>
		alert("<bean:write name='req_msg'/>");
	</script>
</logic:present>
</head>
<body>
 	<table cellpadding="0" cellspacing="0" class="formas">
		<tr>
	    	<td>
			  	<table cellpadding="0" cellspacing="0" class="barraNavegacion">
					<tr>
			        	<td><html:link action="/academy_welcome?action=selectAcademy" styleClass="barraNavegacion"><img src="images/icn_liga.gif" border="0"><bean:message key="AcademyWelcome.Init"/></html:link>
			        		<html:link action="/academy_list" styleClass="barraNavegacion"><img src="images/icn_liga.gif" border="0"><bean:message key="Menu.AcademyHeader"/></html:link>
			        		<html:link action="/subject_list" styleClass="barraNavegacion" name="academia" property="map_id"><img src="images/icn_liga.gif" border="0"><bean:message key="StudyPlan.subjects"/></html:link>
			        		<html:link action="/contents_list" styleClass="barraNavegacion" name="materia" property="map_id"><img src="images/icn_liga.gif" border="0"><bean:message key="StudyPlan.subjects.contents"/></html:link>
		              	</td>
	    			</tr>
			    </table>
			  	<table cellpadding="0" cellspacing="0" class="titulo">
	                <tr>
	                	<td class="iconos_imgs"><a href="mailto:<bean:message key="Application.mailto"/>"><img src="images/icn_correo.gif" width="18" height="18" border="0"></a></td>
	                	<td class="txt_titulo"><bean:message key="StudyPlan.content.ScoredCriterialTitle"/></td>
		            </tr>
	            </table>	
					<table cellpadding="0" cellspacing="2" class="info_formas">
						<tr colspan="4" > 
							<td>&nbsp;</td>
						</tr>
						<tr> 
							<td  colspan="4" class="formas-encabezado"><bean:message key="StudyPlan.subject.subjectData"/></td>
						</tr>
						<tr> 
							<td colspan="4" >
								<table cellpadding="0" cellspacing="2" class="info_titulo">
									<tr> 
										<td class=""><strong><bean:message key="StudyPlan.subject"/></strong></td>
										<td class=""><bean:write name="materia" property="codigo"/> - <bean:write name="materia" property="nombre"/></td>
									</tr>
									<tr> 
										<td class=""><strong><bean:message key="AcademyWelcome.Academy"/></strong></td>
										<td class=""><bean:write name="academia" property="codigo"/> - <bean:write name="academia" property="nombre"/></td>
									</tr>
								</table>
							</td>
						</tr>
						<tr> 
							<td colspan="4" class="formas-encabezado"><bean:message key="StudyPlan.content.ScoredCriterialTitle"/></td>
						</tr>
						<tr> 
						<td colspan="4" align="right">
							<logic:equal name="ses_usuario" property="per_planes" value="2">
								<input type="button" name="btn_insertar" value="<bean:message key="Application.Insert"/> <bean:message key="Grades.Criteria"/>" onclick="location.href = '<html:rewrite action="/grades_add" name="materia" property="map_id"/>'"/>
							</logic:equal>
						</td>
					</tr>
					<tr>
						<td>&nbsp;</td>
						<td>&nbsp;</td>
						<td>&nbsp;</td>
						<td>&nbsp;</td>
					</tr>
					<tr> 
		                  <td class="formas-encabezado"><bean:message key="Grades.Criteria"/></td>
		                  <td class="formas-encabezado"><bean:message key="Grades.Percent"/></td>
		                  <td colspan="2" class="formas-encabezado"><bean:message key="DraftList.Actions"/></td>		                  
               		 </tr>
               		 <logic:iterate id="calificaciones" name="lst_grades" indexId="int_i" scope="request">
							<tr class="info_formas"> 
								<td class="formas-backcolor<%= (int_i.intValue()%2==0?"1":"2") %>"><bean:write name="calificaciones" property="str_criterio"/></td>
								<td class="formas-backcolor<%= (int_i.intValue()%2==0?"1":"2") %>"><bean:write name="calificaciones" property="int_porcentaje"/></td>																		
								<td class="formas-backcolor<%= (int_i.intValue()%2==0?"1":"2") %>"><html:link action="/grades_edit.do" name="calificaciones" property="map_id"><html:img page="/images/icn_editar.gif" border="0" width="24" height="24"/></html:link></td>
								<td class="formas-backcolor<%= (int_i.intValue()%2==0?"1":"2") %>">
									<logic:equal name="ses_usuario" property="per_planes" value="2">
										<a href="javascript:void(0);" onclick="if(confirm('<bean:message key="Grade.confirmDelete"/>?'))location.href='<html:rewrite action="/grades_delete.do"  name="calificaciones" property="map_id" />'">
							          		<html:img page="/images/icn_eliminar.gif" border="0" width="24" height="24"/>
							          	</a>
							          </logic:equal>
								</td>
							</tr>
					</logic:iterate>
					</table>
			</td>
		</tr>
  </table>  
</body>
</html:html>